from script.get_user_info.rating.atcoder import at_rating
from script.testing.base import test_id_is_ok
from script.testing.config.config import twice_check_time_sleep
from script.get_user_info.response.atcoder_response import at_response
import time
def test_at_id_is_ok(uid ) :
    if not test_id_is_ok(uid , at_rating):
        time.sleep(twice_check_time_sleep)
        return "This user has not competed in a rated contest yet." in at_response(uid)
    else:
        return True

if __name__ == '__main__':
    print(test_at_id_is_ok("twi_nami"))


